package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description: 公用常量
 * @Data: 2022/9/2 10:01
 * @Pacakge: com.qf.controller
 * @ClassName: HelloController
 * @Author: fan
 */
@Controller//标记当前类为控制层
public class HelloController {
    @RequestMapping("hello")
    public String sayHello(){
        System.out.println("hello,你好呀,springmvc");
        //success表示视图的名称
        return "success";
    }
}